﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ZX.WebApp.Crm.BasePages.BasePages_WorkTaskCtrlPage"
    CodeBehind="WorkTaskCtrlPage.aspx.cs" %>

<%@ Register Src="~/Crm/BasePages/Affix1.ascx" TagName="Affix1" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>处理任务</title>
    <!--CSS file (default YUI Sam Skin) -->
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/reset-fonts-grids/reset-fonts-grids.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/menu/assets/skins/sam/menu.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/paginator/assets/skins/sam/paginator.css" />
    <link href="../../Styles/base.css" rel="stylesheet" type="text/css" />
    <!--begin custom header content for this example-->
    <style type="text/css">
        .yui-skin-sam table
        {
            width: 100%;
        }
        
        #button-example-form fieldset, #button-example-form fieldset div
        {
            border: 2px groove #ccc;
            margin: .5em;
            padding: .5em;
        }
    </style>
    <!--end custom header content for this example-->
    <!-- Dependencies -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <!-- OPTIONAL: JSON Utility (for DataSource) -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <!-- OPTIONAL: Get Utility (enables dynamic script nodes for DataSource) -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <!-- OPTIONAL: Drag Drop (enables resizeable or reorderable columns) -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <!-- OPTIONAL: Calendar (enables calendar editors) -->
    <%--<script type="text/javascript" src="../Scripts/yui_2.9.0/build/calendar/calendar-min.js"></script>--%>
    <!-- Source files -->
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/resize/resize-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery/DesignForm/DesignForm.Common.js" type="text/javascript"></script>
    <script src="Workflow.js" type="text/javascript"></script>
     <script language="javascript" type="text/javascript">

     </script>
</head>
<body class="yui-skin-sam">
    <form id="form1" runat="server">
    
    <div style="border: 1px solid  #cccccc; float: left; clear: both; padding-right: 5px;
        padding-bottom: 5px; padding-top: 5px; line-height: 100px; width: 100%; height: 100%;">
        <table id="Center1">
            <tr>
                <td>
               <iframe class="IfrEditUIWindow" id="IfrEditUIWindow" frameborder="0" src="" style="width: 100%;
                        height: 100%; margin: 0px; padding: 0px;"></iframe>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div id="Affixss">
                        <iframe id="Affix" frameborder="0" src="" style="width: 100%; height:30px; margin: 0px;
                            padding: 0px;"></iframe>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                         <div id="Censor">
                        <iframe id="WorkflowCensor" frameborder="0" src="" style="width: 100%; height: 100%; margin: 0px;
                            padding: 0px;"></iframe>
                    </div>
                </td>
            </tr>
            <tr> <td style="background-color:#ececec;">
            <div id="bottom1"  style="float:right;margin-top: 3px;margin-right:30px;" >
        <%--        <button type="button" id="btnSave" name="btnSave">
            提交</button>--%>
            <button type="button" id="btnCensorSubmit" name="btnCensorSubmit">
            批准</button>
              <button type="button" id="btnForwardSubmit" name="btnForwardSubmit">
            转发</button>
            <button type="button" id="btnPagereturn" name="btnPagereturn">
            退回</button>
            
        <button type="button" id="btnPageworkflow" name="btnPageworkflow">
            流程图</button>
               <button type="button" id="btnFormsPrint" name="btnFormsPrint">
             打印</button>
        <button type="button" id="btnClose" name="btnClose">
            取消</button>
    </div>
            </td></tr>
        </table>
    </div>
    <div>
        <div id="dialog2" class="yui-pe-content" style="display: none;">
            <div class="hd">
                选择基本信息</div>
            <div id="div_dialog2" class="bd">
                <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                    margin: 0px; padding: 0px;"></iframe>
            </div>
        </div>
     <div id="dialog3" class="yui-pe-content" style="display: none;"  >
        <div class="hd" >
            指定处理人员选择</div>
        <div id="div_dialog3" class="bd">
            <iframe id="EditUIWindow3" frameborder="0" src="" style="width: 100%; height: 100%;
                margin: 0px; padding: 0px;"></iframe>
        </div>
    </div>

<%--        <div id="dialog1" class="yui-pe-content">
            <div class="hd">
                审核意见</div>
            <div class="bd">
                <iframe id="EditUIWindow2" frameborder="0" src="" style="width: 100%; height: 100%;
                    margin: 0px; padding: 0px;"></iframe>
            </div>
        </div>--%>
    </div>
    <script type="text/javascript">
        var _WorkflowId = '<%=WorkFlowId %>',
           _WorktaskId = '<%=WorkTaskId %>',

           _WorkFlowInsId = '<%=WorkFlowInsId %>',
           _WorkTaskInsId = '<%=WorkTaskInsId %>',
           _OperatorInsId = '<%=OperatorInsId %>',
           _OperType = '<%=OperType %>',
           _TableName = '<%=TableName %>',
           _KeyValue = '<%=KeyValue %>',
        _FormType = '<%=FormType %>',
        _CancelFlag = '';
        _URL = '<% =URL %>';
        _IsPagereturn = '0';
        _IsAssgin = '0';
        _IsDraft = '<% =IsDraft %>';
        _IsIE = '<%=IsIE %>;'

        var items = '<%=Status %>'.toString();
        var operstatus = '<%=OperTypeStatus %>'.toString();
        _CancelFlag = items;
        if (_OperType == '12') {
            $("#btnForwardSubmit").attr({ "disabled": "disabled" });
        }
        if (items == '4') {
            _IsPagereturn = '1';
            $("#btnForwardSubmit").attr({ "disabled": "disabled" });
        }
        if (_IsDraft == '1') { _IsPagereturn = '1'; }

        if (items == "3") {

            $("#btnForwardSubmit").attr({ "disabled": "disabled" });
            $("#btnCensorSubmit").attr({ "disabled": "disabled" });
            $("#btnPagereturn").attr({ "disabled": "disabled" });
//            $("#btnPageworkflow").attr({ "disabled": "disabled" });
            $("#btnClose").attr({ "disabled": "disabled" });
        }
        if (operstatus == "1") {
            $("#btnPagereturn").attr({ "disabled": "disabled" });
        }

        function openDialog() {
               
              //var returnValue = window.open('FormsPrint.aspx?OperatorInstanceId=' + _OperatorInsId + '', '', 'dialogWidth=1000px;dialogHeight=500px;scroll:no');
              var returnValue = window.open('FormsPrint.aspx?OperatorInstanceId=' + _OperatorInsId + '', "", "scrollbars=no,status=yes,,toolbar=yes,menubar=no,resizable=no,top=0,left=0,width=" + (screen.availWidth - 10) + ",height=" + (screen.availHeight - 30));
              objWin__.focus();


         
         }
        var ReturnModel = function (status) {
            //debugger;
            //_CancelFlag = status;
            if (status == '4') {
                _IsPagereturn = '1';
                $("#btnCensorSubmit").text('提交');
                $("#btnPagereturn").remove();
            }
        };
        var WorkTaskStartModel = function (TaskType) {
            //debugger;

            if (TaskType == '1') {
                $("#btnCensorSubmit").text('提交');
                $("#btnPagereturn").remove();
            }
        };

        (function () {
//            var Dom = YAHOO.util.Dom,
//            Event = YAHOO.util.Event;
//            Event.onDOMReady(function () {
//                var layout = new YAHOO.widget.Layout({
//                    units: [
//                { position: 'bottom', header: 'Bottom', height: 35, resize: true, body: 'bottom1', gutter: '5px', collapse: true },
//                { position: 'center', body: 'Center1'}
//                ]
//                });
//                layout.render();
//            });
             
            

            if (_FormType == 'Html') {
                var load = function () {
                    //弹出对话框
                    YAHOO.namespace("example.container");

                    var handleSuccess = function (o) {
                        var response = o.responseText;
                        response = response.split("<!")[0];
                        document.getElementById("resp").innerHTML = response;
                    };
                    var handleCancel = function () {
                        this.cancel();
                    };

                    var handleFailure = function (o) {
                        alert("Submission failed: " + o.status);
                    };
//                    var handlePagereturn = function () {
//                        var editwindow = document.getElementById("EditUIWindow2");
//                        if (editwindow) {
//                            var str = editwindow.contentWindow.Checking();
//                        }
//                        if (str == "1") {
//                            if (typeof (_OperatorInsId) != "undefined") {
//                                WF.TaskBack.init(_OperatorInsId);
//                            }
//                        }


//                    };
                    var handleSubmit1 = function () {
                        var editwindow = document.getElementById("EditUIWindow1");
                        if (editwindow) {
                            editwindow.contentWindow.ChooseInfo();
                        }
                        this.cancel();
                    };

//                    var handleCensorSubmit = function () {

//                        var editwindow = document.getElementById("EditUIWindow2");
//                        if (editwindow) {
//                            var str1 = editwindow.contentWindow.Save();
//                        }
//                        if (str1 == "1") {
//                            return;
//                        }
//                    };

                    YAHOO.example.container.dialog2 = new YAHOO.widget.Dialog("dialog2",
							    { width: "550px",
							        height: "450px",
							        fixedcenter: true,
							        visible: false,
							        draggable: true,
							        close: true,
							        autofillheight: "body",
							        constraintoviewport: true,
							        buttons: [{ text: "保存", handler: handleSubmit1, isDefault: true },
								          { text: "取消", handler: handleCancel}]
							    });
//                    YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
//							    { width: "750px",
//							        height: "450px",
//							        fixedcenter: true,
//							        visible: false,
//							        draggable: true,
//							        close: true,
//							        autofillheight: "body",
//							        constraintoviewport: true,
//							        buttons: [{ text: "批准", handler: handleCensorSubmit, isDefault: true },
//                                              { text: "退回", handler: handlePagereturn, isDefault: true },
//								          { text: "取消", handler: handleCancel}]
//							    });
//                    YAHOO.example.container.dialog1.render();
                    YAHOO.example.container.dialog2.render();


                };


                load();
                WF.init(_TableName, _WorkflowId, _WorktaskId);
                WF.setWorkflowInsId(_WorkFlowInsId);
                WF.setWorktaskInsId(_WorkTaskInsId);
                WF.setOperatorInsId(_OperatorInsId);
                document.getElementById("IfrEditUIWindow").src = _URL;
                document.getElementById("Affix").src = "Affix.aspx?WorkflowId=" + _WorkflowId + "&WorktaskId=" + _WorktaskId + "&WorkFlowInstanceId=" + _WorkFlowInsId + "&Status=" + items + "";

                document.getElementById("WorkflowCensor").src = "WorkflowCensor.aspx?r=" + Math.random() + "&OperatorInsId=" + _OperatorInsId + "&WorkflowId=" + _WorkflowId + "&WorkflowInsId=" + _WorkFlowInsId + "&WorktaskId=" + _WorktaskId + "&WorktaskInsId=" + _WorkTaskInsId + "&Status=" + items + "";

                $("#IfrEditUIWindow").load(function() {  
                    $(this).height($(this).contents().height());  
                }); 
                $("#Affix").load(function() {  
                    $(this).height($(this).contents().height());  
                });
                $("#WorkflowCensor").load(function() {  
                    $(this).height($(this).contents().height());  
                });
                //debugger;
                WF.WorkTaskType.init(_WorkTaskInsId);

            } else { window.location = _URL; }


        })();

        YAHOO.example.init = function () {

            // "click" event handler for each Button instance
            function onButtonClick(p_oEvent) {
                YAHOO.log("You clicked button: " + this.get("id"), "info", "example1");
                //debugger;
                switch (this.get("id")) {
                    //                    case "btnSave":  
                    //                        handleSubmit();  
                    //                        break;  
                    case "btnClose":
                        handlePageCancel();
                        break;
                    case "btnPageworkflow":
                        handlePageworkflow();
                        break;
                    case "btnForwardSubmit":
                        handleForwardSubmit();
                        break;
                    case "btnCensorSubmit":
                        handleCensorSubmit();
                        break;
                    case "btnPagereturn":
                        handlePagereturn();
                        break;
                    case "btnDraft":
                        handleDraft();
                    case "btnFormsPrint":
                        openDialog();
                        break;

                    default:
                        break;
                }
            };




            YAHOO.util.Event.onContentReady("bottom1", function () {
                //                var btnSave = new YAHOO.widget.Button("btnSave");
                //                btnSave.on("click", onButtonClick);

                var btnClose = new YAHOO.widget.Button("btnClose");
                btnClose.on("click", onButtonClick);
                var btnPageworkflow = new YAHOO.widget.Button("btnPageworkflow");
                btnPageworkflow.on("click", onButtonClick);
                var btnForwardSubmit = new YAHOO.widget.Button("btnForwardSubmit");
                btnForwardSubmit.on("click", onButtonClick);
                var btnCensorSubmit = new YAHOO.widget.Button("btnCensorSubmit");
                btnCensorSubmit.on("click", onButtonClick);
                var btnPagereturn = new YAHOO.widget.Button("btnPagereturn");
                btnPagereturn.on("click", onButtonClick);
                var btnFormsPrint = new YAHOO.widget.Button("btnFormsPrint");
                btnFormsPrint.on("click", onButtonClick);
            });
        } ();



        var handlePageCancel = function () {
    
            window.parent.$("#tabs").tabs('close', '<% =PageTitle %>');
        };



        var handlePageworkflow = function () {
            parent.addTabs("流程图", "crm/basepages/WorkflowMap.aspx?WorkFlowInstanceId=" + _WorkFlowInsId + "&workflowId=" + _WorkflowId);
            parent.NeedRefreshPage = this;
        }
        var handleForwardSubmit = function () {
            var editwindow = document.getElementById("IfrEditUIWindow");
          
            if (editwindow) {

                setTimeout(function () {
                    var btn1 = document.getElementById("btnForwardSubmit");
                    btn1.disabled = true;

                    if (_IsPagereturn != '1') {
                        //var ismsg = window.frames["WorkflowCensor"].Check('0'); //0转发
                        var ismsg = document.getElementById("WorkflowCensor").contentWindow.Check('0');

                        if (ismsg == '1') {
                            editwindow.contentWindow.Save();
                        } else {
                            btn1.disabled = false;
                            return;
                        }
                    } else { editwindow.contentWindow.Save(); }
                    setTimeout(function () { btn1.disabled = false; }, 10000);
                }, 10);
            }
        }
        var handleCensorSubmit = function () {
            var editwindow = document.getElementById("IfrEditUIWindow");
            //var wfCensor = document.getElementById("WorkflowCensor");
            if (editwindow) {


                setTimeout(function () {
                    var btn1 = document.getElementById("btnCensorSubmit");
                    btn1.disabled = true;

                    if (_IsPagereturn != '1') {
                        //var ismsg = window.frames["WorkflowCensor"].Check('1'); //1审批
                        var ismsg = document.getElementById("WorkflowCensor").contentWindow.Check('1');
                        if (ismsg == '1') {
                            editwindow.contentWindow.Save();
                        } else {
                            btn1.disabled = false;
                            return;
                        }
                    } else { editwindow.contentWindow.Save(); }
                    setTimeout(function () { btn1.disabled = false; }, 10000);
                }, 10);
            }



        };
        var handleDraft = function (strs) {
            if (strs != null) {

            }
        };
        var handleSubmit = function () {
            var editwindow = document.getElementById("IfrEditUIWindow");
            if (editwindow) {
                editwindow.contentWindow.Save();
            }
        };
        //        function ReLoadData(KeyValue) {

        //            if (typeof (KeyValue) == "undefined") { return; }

        //            if (typeof (_OperatorInsId) != "undefined") {
        //                WF.WFRun.init(_OperatorInsId, "提交");
        //            }
        //              
        //        }
        var hanYesno = function (str) {
            if (str != null && str != "") {
                WF.Assgin.init(str); //指派
                _IsAssgin = '1';
            }
        }
        var handlePagereturn = function () {
            var wfCensor = document.getElementById("WorkflowCensor");

            setTimeout(function () {
                var btn = document.getElementById("btnPagereturn");
                btn.disabled = true;
                if (wfCensor) {
                    var str = wfCensor.contentWindow.Checking();
                }
                if (str == "1") {
                    if (typeof (_OperatorInsId) != "undefined") {
                        WF.TaskBack.init(_OperatorInsId);
                    }
                }
                setTimeout(function () { btn.disabled = false }, 10000);
            }, 10);
     
        };
        var fnWorkflowCensor = function () {
            document.getElementById("EditUIWindow2").src = "WorkflowCensor.aspx?r=" + Math.random() + "&OperatorInsId=" + _OperatorInsId + "&WorkflowId=" + _WorkflowId + "&WorkflowInsId=" + _WorkFlowInsId + "&WorktaskId=" + _WorktaskId + "&WorktaskInsId=" + _WorkTaskInsId + "";
            YAHOO.example.container.dialog1.show();
        }
        /* 对应的方法和ID*/

        var _fn, _id;
        function ShowDialog(fn, id, src) {
            document.getElementById('dialog2').style.display = "";
            _fn = fn;
            _id = id;
            document.getElementById('div_dialog2').style.height="400px";
            
            document.getElementById("EditUIWindow1").src = src;
            YAHOO.example.container.dialog2.show();
        }
        /*刷新时候调用*/
        function closeWin() { }
        function ReLoadData(KeyValue, Title,Name,Value) {
           
            if (typeof (Title) == "undefined") { Title = ''; }
            if (typeof (_OperatorInsId) != "undefined") {

                if (_IsPagereturn == '1')//1：表示启动节点
                 {
                    //不定期；
                    if (typeof (Value) != "undefined") {
                        if (Value != '') {
                            WF.FreeFlow.init(_WorkflowId, _WorktaskId, Value, Name);
                        }
                    }
                    WF.UpdateTitle.init(_WorkFlowInsId,Title);
                    WF.WFRun.init(_OperatorInsId, "提交");
                }
                else 
                {
                        var wfCensor = document.getElementById("WorkflowCensor");
                        if (wfCensor) {
                            var str1 = wfCensor.contentWindow.Save();
                            if (str1 == "1") { return; }
                            if (_IsAssgin == '0') {
                                WF.WFRun.init(_OperatorInsId, "提交");
                            }
                        }
                }
            }
        }

        YAHOO.namespace("example.container");


        function ShowDialog1(fn, id, src) {
        
            document.getElementById('dialog3').style.display = "";
            var handleSubmit = function () {
                var editwindow = document.getElementById("EditUIWindow3");
                if (editwindow) {
                    editwindow.contentWindow.ChooseInfo();
                }
                YAHOO.example.container.dialog3.hide();
            };
            var handleCancel = function () {
                this.cancel();
            };
            var handleSuccess = function (o) {
                var response = o.responseText;
                response = response.split("<!")[0];
                document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert("Submission failed: " + o.status);
                //                  var response = o.responseText;
                //                  response = response.split("<!")[0];
                //                  document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert('出错了handleFailure');
            };

            var const_EditWindowWidth = "400px",
		    const_EditWindowHeight = "300px";
            // Remove progressively enhanced content class, just before creating the module
            YAHOO.util.Dom.removeClass("dialog3", "yui-pe-content");

            // Instantiate the Dialog
            YAHOO.example.container.dialog3 = new YAHOO.widget.Dialog("dialog3",
							    { width: const_EditWindowWidth,
							        height: const_EditWindowHeight,
							        fixedcenter: true,
							        visible: false,
							        draggable: true,
							        close: true,
							        autofillheight: "body",
							        constraintoviewport: true,
							        buttons: [{ text: "确定", handler: handleSubmit, isDefault: true },
								          { text: "取消", handler: handleCancel}]
							    });
            // Wire up the success and failure handlers
            YAHOO.example.container.dialog3.callback = { success: handleSuccess,
                failure: handleFailure
            };
            // Render the Dialog
            YAHOO.example.container.dialog3.render();
            _fn = fn;
            _id = id;
            document.getElementById("EditUIWindow3").src = src;
            YAHOO.example.container.dialog3.show();
        }

         function ShowDialog3(fn, id) {
        
            document.getElementById('dialog3').style.display = "";
            var handleSubmit = function () {
                var editwindow = document.getElementById("EditUIWindow3");
                if (editwindow) {
                    editwindow.contentWindow.ChooseInfo();
                }
                YAHOO.example.container.dialog3.hide();
            };
            var handleCancel = function () {
                this.cancel();
            };
            var handleSuccess = function (o) {
                var response = o.responseText;
                response = response.split("<!")[0];
                document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert("Submission failed: " + o.status);
                //                  var response = o.responseText;
                //                  response = response.split("<!")[0];
                //                  document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert('出错了handleFailure');
            };

            var const_EditWindowWidth = "400px",
		    const_EditWindowHeight = "300px";
            // Remove progressively enhanced content class, just before creating the module
            YAHOO.util.Dom.removeClass("dialog3", "yui-pe-content");

            // Instantiate the Dialog
            YAHOO.example.container.dialog3 = new YAHOO.widget.Dialog("dialog3",
							    { width: const_EditWindowWidth,
							        height: const_EditWindowHeight,
							        fixedcenter: true,
							        visible: false,
							        draggable: true,
							        close: true,
							        autofillheight: "body",
							        constraintoviewport: true,
							        buttons: [{ text: "确定", handler: handleSubmit, isDefault: true },
								          { text: "取消", handler: handleCancel}]
							    });
            // Wire up the success and failure handlers
            YAHOO.example.container.dialog3.callback = { success: handleSuccess,
                failure: handleFailure
            };
            // Render the Dialog
            YAHOO.example.container.dialog3.render();
            _fn = fn;
            _id = id;
            YAHOO.example.container.dialog3.show();
        }
    </script>
    </form>
</body>
<%--    <script language="javascript" type="text/javascript">
        (function () {
            window.location = "<% =URL %>";

        })();
    </script>
                    <tr>
                    <td align="left" >
                    <fieldset>
                    <legend>
			<font style="FONT-SIZE: 12px; COLOR: #082c50; FONT-FAMILY: 宋体">流 程 操 作</font></legend>
                        <asp:PlaceHolder ID="cmdBtnPlace" runat="server"></asp:PlaceHolder>
                        <br />
                        <asp:PlaceHolder ID="DyAssignPlace" runat="server"></asp:PlaceHolder>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td align="left" >
                    <fieldset>
                    <legend>
			<font style="FONT-SIZE: 12px; COLOR: #082c50; FONT-FAMILY: 宋体">常 用 操 作</font></legend>
                        <asp:PlaceHolder ID="generalPlace" runat="server"></asp:PlaceHolder></fieldset>
                    </td>
                </tr>--%>
</html>
